<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <table border="1" width="250">
    {volist name="list" id="v"}
        <tr>
            <td>{$v['id']}</td>
            <td>{$v['name']}</td>
            <td>{$v['sex']}</td>
            <td>{$v['age']}</td>
            <td><a href="{:url('index/index/del',['id'=>$v['id']])}">删除</a>|<a href="{:url('index/index/cha',['id'=>$v['id']])}">编辑</a></td>
        </tr>
    {/volist}
    </table>
    
    <hr>
    <h3> 添加用户 </h3>
    <div style="height:100;">
        <form action="{:url('index/index/add')}" method="post">
            name: <input type="text" name="name">
            sex: <input type="radio" name="sex" value="1" checked>男
            <input type="radio" name="sex" value="0">女
            age: <input type="text" name="age">
            <input type="submit" value="提交">
        </form>
    </div>
</body>
</html>